/**
 * Handle changed data.
 *
 * @param {String} oldValue old value
 * @param {String} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"72EB75F1-9020-44CB-964D-727BED9213FD"}
 */
function onDataChangeMedioExc(oldValue, newValue, event) {
	var $rel = reservajor_to_tarifari_mediotr
	var $idavuelta = new Array()
	var $reales = new Array()

	for (var i = 1 ; i <= $rel.getSize() ; i++)
	{
		var $reg = $rel.getRecord(i)
		
		if ($reales.indexOf($reg.tari_idavuel,0) == -1)
		{
			var $valor = application.getValueListDisplayValue('tipo_trf',$reg.tari_idavuel)
			$idavuelta.push($valor)
			$reales.push($reg.tari_idavuel)
		}
	}
	application.setValueListItems('reserva_jor_idavuel',$idavuelta,$reales)	
	return true
}
